home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / AmiTCPsdk_40.lha / AmiTCP-4.0 / netinclude / sys / errno.h < prev    next >
C/C++ Source or Header  |  1994-10-05  |  5KB  |  122 lines

  1. #ifndef SYS_ERRNO_H
  2. #define SYS_ERRNO_H \
  3.        "$Id: errno.h,v 4.1 1994/10/05 22:57:42 ppessi Exp $"
  4. /*
  5.  *      Error codes
  6.  *
  7.  *      Copyright © 1994 AmiTCP/IP Group,
  8.  *                       Network Solutions Development, Inc.
  9.  *                       All rights reserved.
  10.  */
  11.  
  12. #define    EPERM        1        /* Operation not permitted */
  13. #define    ENOENT        2        /* No such file or directory */
  14. #define    ESRCH        3        /* No such process */
  15. #define    EINTR        4        /* Interrupted system call */
  16. #define    EIO        5        /* Input/output error */
  17. #define    ENXIO        6        /* Device not configured */
  18. #define    E2BIG        7        /* Argument list too long */
  19. #define    ENOEXEC        8        /* Exec format error */
  20. #define    EBADF        9        /* Bad file descriptor */
  21. #define    ECHILD        10        /* No child processes */
  22. #define    EDEADLK        11        /* Resource deadlock avoided */
  23.                     /* 11 was EAGAIN */
  24. #define    ENOMEM        12        /* Cannot allocate memory */
  25. #define    EACCES        13        /* Permission denied */
  26. #define    EFAULT        14        /* Bad address */
  27. #ifndef _POSIX_SOURCE
  28. #define    ENOTBLK        15        /* Block device required */
  29. #define    EBUSY        16        /* Device busy */
  30. #endif
  31. #define    EEXIST        17        /* File exists */
  32. #define    EXDEV        18        /* Cross-device link */
  33. #define    ENODEV        19        /* Operation not supported by device */
  34. #define    ENOTDIR        20        /* Not a directory */
  35. #define    EISDIR        21        /* Is a directory */
  36. #define    EINVAL        22        /* Invalid argument */
  37. #define    ENFILE        23        /* Too many open files in system */
  38. #define    EMFILE        24        /* Too many open files */
  39. #define    ENOTTY        25        /* Inappropriate ioctl for device */
  40. #ifndef _POSIX_SOURCE
  41. #define    ETXTBSY        26        /* Text file busy */
  42. #endif
  43. #define    EFBIG        27        /* File too large */
  44. #define    ENOSPC        28        /* No space left on device */
  45. #define    ESPIPE        29        /* Illegal seek */
  46. #define    EROFS        30        /* Read-only file system */
  47. #define    EMLINK        31        /* Too many links */
  48. #define    EPIPE        32        /* Broken pipe */
  49.  
  50. /* math software */
  51. #define    EDOM        33        /* Numerical argument out of domain */
  52. #define    ERANGE        34        /* Result too large */
  53.  
  54. /* non-blocking and interrupt i/o */
  55. #define    EAGAIN        35        /* Resource temporarily unavailable */
  56. #ifndef _POSIX_SOURCE
  57. #define    EWOULDBLOCK    EAGAIN        /* Operation would block */
  58. #define    EINPROGRESS    36        /* Operation now in progress */
  59. #define    EALREADY    37        /* Operation already in progress */
  60.  
  61. /* ipc/network software -- argument errors */
  62. #define    ENOTSOCK    38        /* Socket operation on non-socket */
  63. #define    EDESTADDRREQ    39        /* Destination address required */
  64. #define    EMSGSIZE    40        /* Message too long */
  65. #define    EPROTOTYPE    41        /* Protocol wrong type for socket */
  66. #define    ENOPROTOOPT    42        /* Protocol not available */
  67. #define    EPROTONOSUPPORT    43        /* Protocol not supported */
  68. #define    ESOCKTNOSUPPORT    44        /* Socket type not supported */
  69. #define    EOPNOTSUPP    45        /* Operation not supported on socket */
  70. #define    EPFNOSUPPORT    46        /* Protocol family not supported */
  71. #define    EAFNOSUPPORT    47        /* Address family not supported by protocol family */
  72. #define    EADDRINUSE    48        /* Address already in use */
  73. #define    EADDRNOTAVAIL    49        /* Can't assign requested address */
  74.  
  75. /* ipc/network software -- operational errors */
  76. #define    ENETDOWN    50        /* Network is down */
  77. #define    ENETUNREACH    51        /* Network is unreachable */
  78. #define    ENETRESET    52        /* Network dropped connection on reset */
  79. #define    ECONNABORTED    53        /* Software caused connection abort */
  80. #define    ECONNRESET    54        /* Connection reset by peer */
  81. #define    ENOBUFS        55        /* No buffer space available */
  82. #define    EISCONN        56        /* Socket is already connected */
  83. #define    ENOTCONN    57        /* Socket is not connected */
  84. #define    ESHUTDOWN    58        /* Can't send after socket shutdown */
  85. #define    ETOOMANYREFS    59        /* Too many references: can't splice */
  86. #define    ETIMEDOUT    60        /* Connection timed out */
  87. #define    ECONNREFUSED    61        /* Connection refused */
  88.  
  89. #define    ELOOP        62        /* Too many levels of symbolic links */
  90. #endif /* _POSIX_SOURCE */
  91. #define    ENAMETOOLONG    63        /* File name too long */
  92.  
  93. /* should be rearranged */
  94. #ifndef _POSIX_SOURCE
  95. #define    EHOSTDOWN    64        /* Host is down */
  96. #define    EHOSTUNREACH    65        /* No route to host */
  97. #endif /* _POSIX_SOURCE */
  98. #define    ENOTEMPTY    66        /* Directory not empty */
  99.  
  100. /* quotas & mush */
  101. #ifndef _POSIX_SOURCE
  102. #define    EPROCLIM    67        /* Too many processes */
  103. #define    EUSERS        68        /* Too many users */
  104. #define    EDQUOT        69        /* Disc quota exceeded */
  105.  
  106. /* Network File System */
  107. #define    ESTALE        70        /* Stale NFS file handle */
  108. #define    EREMOTE        71        /* Too many levels of remote in path */
  109. #define    EBADRPC        72        /* RPC struct is bad */
  110. #define    ERPCMISMATCH    73        /* RPC version wrong */
  111. #define    EPROGUNAVAIL    74        /* RPC prog. not avail */
  112. #define    EPROGMISMATCH    75        /* Program version wrong */
  113. #define    EPROCUNAVAIL    76        /* Bad procedure for program */
  114. #endif /* _POSIX_SOURCE */
  115.  
  116. #define    ENOLCK        77        /* No locks available */
  117. #define    ENOSYS        78        /* Function not implemented */
  118.  
  119. #define    EFTYPE        79        /* Inappropriate file type or format */
  120.  
  121. #endif /* !SYS_ERRNO_H */
  122.